package com.ltmonitor.video.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 车辆视频OSD字幕叠加设置
 */

@Entity
@org.hibernate.annotations.Proxy(lazy = false)
@Table(name = "VehicleOsd")
public class VehicleOsd implements Serializable{


    /**
     * 车牌号 与GPSRealData类的成员变量名称保持一致
     */
    public static  String OSD_PLATENO = "plateNo";
    /**
     * gps定位时间 与GPSRealData类的成员变量名称保持一致
     */
    public static String OSD_GPS_TIME = "sendTime";
    /**
     * 位置 与GPSRealData类的成员变量名称保持一致
     */
    public static String OSD_LOCATION = "location";
    /**
     * 速度 与GPSRealData类的成员变量名称保持一致
     */
    public static String OSD_SPEED = "speed";
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "osdId", unique = true, nullable = false)
    private long entityId;

    private int vehicleId;
    /**
     * osd类型 同时显示多个常量以逗号隔开，如"osd_plateNo,osd_gps_time",为空则不启用osd
     */
    private String osdType;
    /**
     * 显示的位置坐标
     */
    private int x;

    private int y;
    /**
     *位置类型，左上角，右下角等
     */
    private String posType;

    public long getEntityId() {
        return entityId;
    }

    public void setEntityId(long entityId) {
        this.entityId = entityId;
    }

    public int getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(int vehicleId) {
        this.vehicleId = vehicleId;
    }

    /**
     * osd类型
     */
    public String getOsdType() {
        return osdType;
    }

    public void setOsdType(String osdType) {
        this.osdType = osdType;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public String getPosType() {
        return posType;
    }

    public void setPosType(String posType) {
        this.posType = posType;
    }
}
